﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace TestApp.Xml
{
    public class Address
    {
        [XmlAttribute("ID_Test")]
        public int ID { get; set; }

        public String Forename { get; set; }

        public String Lastname { get; set; }

        public Address()
            : base()
        {
        }

        public Address(String forename, String lastname)
            : this()
        {
            ID = new Random(DateTime.Now.Millisecond).Next();
            Forename = forename;
            Lastname = lastname;
        }
    }
}